package com.xy.p2p.service;

import java.util.List;
import java.util.Map;
import com.xy.core.service.BaseService;
import com.xy.common.page.Pagination;

import com.xy.p2p.model.FinanceHelper;
import com.xy.p2p.model.Tfinanceinfo;
import com.xy.p2p.model.Tmember;
import com.xy.p2p.model.Ttenderrecord;
import com.xy.p2p.model.Tuser;

public abstract interface TfinanceinfoService extends BaseService<Tfinanceinfo>
{
	public abstract boolean checkExist(String paraName,String paraValue);
   public abstract List<Tfinanceinfo> getTfinanceinfo(Map<String, Object> map);
	public abstract Pagination getTfinanceinfoByPage(Map<String, Object> map, int pageNo,
			int pageSize);
   public boolean checkNull(Tmember tmember);
   public abstract List<Tfinanceinfo> getEnableFinance();
   /**
    * 添加该投标记录的已投标金额 , 在属性totaltendermoney里面
    * @param tfinanceinfo
    * @return
    */
   public abstract Tfinanceinfo putTenderMoneyIntoEntity(Tfinanceinfo tfinanceinfo);
   public Tfinanceinfo audit(long fiid,String opr,String opinion,Tuser tuser);
   public Tfinanceinfo loan(Tfinanceinfo tfinanceinfo,String opr,Tuser tuser);
   public Tfinanceinfo pay(Tfinanceinfo tfinanceinfo,Tuser tuser);
   public FinanceHelper getFinanceHelper(Tmember tmember);
   public List<Tfinanceinfo> getYED();
   public String YEDPay(Tfinanceinfo tfinanceinfo);
//   public String 
   /**
    * 满标时发送邮件通知客户
    * @param fiid 标的ID
    */
   public void sendFullMail(long fiid);
   
   //添加筛选条件筛选可投标列表
   public abstract Pagination getEnableFinanceByCondition(String[] targetType, List<Map<String, Integer>> dateList, String[] credit,int pageNo, int pageSize);
   
   
}